import { CHANGE_LOGIN } from './constants'


const initState = {
    isLogin: false
};


export default (state = initState, action) => {
    switch (action.type) {
        case CHANGE_LOGIN:
            return {
                ...state,
                isLogin: action.isLogin
            }
        default:
            return state;
    }
}